package com.wuqing.mybatisredisdemo.controller;


import com.wuqing.mybatisredisdemo.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 卢文昊
 * @since 2021-08-10
 */
@RestController
@RequestMapping("/class")
public class ClassController {
    @Autowired
    private ClassService classService;

    @RequestMapping("/updateNameById")
    public String updateNameById(Integer id, String name){
        return classService.updateNameById(id, name);
    }
}

